import request from '@/utils/request'

// 属性顺序列表接口 对象属性查看
export function getAllTables(tableName) {
  return request({
    url: '/plm-sys/api/sysAutocode/getTables?tableName =' + tableName,
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/plm-sys/api/sysAutocode/add',
    method: 'post',
    data: data

  })
}
export function view(data) {
  return request({
    url: '/plm-sys/api/sysAutocode/view?id=' + data,
    method: 'get'
  })
}

export function getDataList(data) {
  return request({
    url: '/plm-sys/api/sysAutocode/queryPageList',
    method: 'post',
    data: data

  })
}

export function genCode(data) {
  return request({
    url: '/plm-sys/api/sysAutocode/genCode?codeId=' + data,
    method: 'get'
  })
}

export function deletes(data) {
  return request({
    url: '/plm-sys/api/sysAutocode/dels',
    method: 'delete',
    data: data
  })
}

